package com.starsoft.frame.fileimport.pojo;



public enum ValueType {

	String, Integer, Double, Boolean, Date, DateTime, Long;

	public static ValueType toEnum(String str) {
		if ("String".equalsIgnoreCase(str))
			return ValueType.String;
		if ("Integer".equalsIgnoreCase(str))
			return ValueType.Integer;
		if ("Double".equalsIgnoreCase(str))
			return ValueType.Double;
		if ("Boolean".equalsIgnoreCase(str))
			return ValueType.Boolean;
		if ("Date".equalsIgnoreCase(str))
			return ValueType.Date;
		if ("DateTime".equalsIgnoreCase(str))
			return ValueType.DateTime;
		if ("Long".equalsIgnoreCase(str))
			return ValueType.Long;
		throw new RuntimeException("type: " + str + " is not support");
	}

}

